#pragma once

#include <QWidget>

class QHBoxLayout;
class QLabel;
class QPushButton;

namespace widgetkit {

///////////// 自定义控件
class AvatarItem : public QWidget
{
    Q_OBJECT
public:
    AvatarItem(const QIcon& avatar, const QString& name);

    QPushButton* getAvatarBtn();
private:
    QPushButton* avatarBtn;
    QLabel* nameLabel;
};

}
